package com.franklin.validation.core.response;

import java.io.Serializable;

/**
 * Description :
 * Create By: Franklin
 * Date : 2020/6/4 11:03
 */
public interface JsonResponse<I,O> extends Serializable {

    default O response(I input){
        return null;
    }

    default <E> E getResponse(I input,Class<E> type){
        return null;
    }

    O defaultResponse(Class<I> ... type);
}
